package com.java.jvm.stack;

class ClassA{
    public void doMethod(){
        System.out.println("ClassA.doMethod()");
    }
}
class ClassB extends ClassA{
    @Override
    public void doMethod() {
        //super.doMethod();
        doMethod();
    }
}

public class StackMemoryTests {

    static void doMethod(){
        doMethod();
    }
    public static void main(String[] args) {
        //doMethod();
        new ClassB().doMethod();
    }
}
